import { ATeamCombat } from "GameLoop/WorldState/EntityManager/Entitys";
import { BinaryDecision } from "framework/FSM/DecisionTree/Decision";

 

/**
 * 是否需要集结
*/
export class DecisionIsTeamMoveActive <T extends IStateArg<ATeamCombat,ITask>> extends BinaryDecision<T>
{

    public testValue(arg:T): boolean
    {
        if(!arg.entity.moveTarget())
        {
            return false;
        }
        if(!arg.entity.isTeamMoveReady)
        {
            return false;
        }
        return true;
        // return true;
    }

    value: any;


    public setValue(val: any)
    {
        this.value = val;
    }
}

